const jwt = require('koa-jwt');
const Router = require('koa-router');
const router = new Router({prefix:'/collectQuestionLists'});
const {findByUserId,collectQuestion,uncollectQuestion} = require('../controllers/collectQuestionLists')
const {secret} = require('../config/index');
const auth = jwt({ secret });


router.get('/',auth,findByUserId);
router.post('/collect/:id',auth,collectQuestion);
router.delete('/uncollect/:id',auth,uncollectQuestion);
module.exports = router;